function getMemberList (params) {
  return $axios({
    url: 'http://localhost:18080/admin/employee/page',
    method: 'get',
    params
  })
}

// 修改---启用禁用接口
function enableOrDisableEmployee (params) {
  const Authorization = localStorage.getItem('Authorization')

  return $axios({
    url: 'http://localhost:18080/admin/employee',
    method: 'put',
    headers: {
      'Authorization': `${Authorization}`
    },
    data: { ...params }
  })
}

// 新增---添加员工
function addEmployee (params) {
  const Authorization = localStorage.getItem('Authorization')

  return $axios({
    url: 'http://localhost:18080/admin/employee',
    method: 'post',
    headers: {
      'Authorization': `${Authorization}`
    },
    data: { ...params }
  })
}

// 修改---添加员工
function editEmployee (params) {
  const Authorization = localStorage.getItem('Authorization')

  return $axios({
    url: 'http://localhost:18080/admin/employee',
    method: 'put',
    headers: {
      'Authorization': `${Authorization}`
    },
    data: { ...params }
  })
}

// 修改页面反查详情接口
function queryEmployeeById (id) {
  return $axios({
    url: `http://localhost:18080/admin/employee/${id}`,
    method: 'get'
  })
}